﻿   
 
using System;
using System.Threading.Tasks;
using System.Linq.Expressions;
 
using Oliving.Edge.Model;
using Oliving.Edge.Model.Dto;
using Oliving.Edge.Model.Models;
using Oliving.Edge.IServices;
using Oliving.Edge.IRepository;
using Oliving.Edge.Services.BASE;
using Oliving.Edge.Model.Dto.DTSN;
using Oliving.Edge.Model.DTSN;
using Oliving.Edge.IRepository.DTSN;
using Oliving.Edge.IServices.DTSN;
using Oliving.Edge.Model.Models.DTSN;

namespace Oliving.Edge.Services.DTSN{
                public partial class DTSN_WuLiaoTypeServices : BaseServices<DTSN_WuLiaoType>, IDTSN_WuLiaoTypeServices
    {
        IDTSN_WuLiaoTypeRepository _dal;
        public DTSN_WuLiaoTypeServices(IDTSN_WuLiaoTypeRepository dal)
        {
            this._dal = dal;
            base.BaseDal = dal;
        } 
    
               

        public async Task<PageModel<DTSN_WuLiaoTypePageDto>> QueryPageList(
            Expression<Func<DTSN_WuLiaoType, bool>> whereExpression,
            int pageIndex = 1, int pageSize = 20,
            string sortField = null, string sortOrder = null
            )
        {
            var page = await _dal.QueryPageList(
                whereExpression,
                pageIndex, pageSize,
                    sortField, sortOrder);
            return page;
        }
 
            

    }
}
     
